package menuBranch;
import java.awt.image.BufferedImage;

/******************************************************************************
 * <p>
 * File: sprite.java
 * </p>
 * @author  Tadhg O'Sullivan, rogue
 * @author <a href="mailto:tadhg.osullivan@ucdconnect.ie">tadhg.osullivan@ucdconnect.ie</a>
 * @version 1.0, 2007
 * @created 22-Feb-07 5:54:57 PM
 * @revised 22-Feb-07
 * <p>
 * Description: Create a sprite object with the appropriate getter and setter
 * methods
 * </p>
 *****************************************************************************/

public class sprite {
	protected BufferedImage image;
	protected int health;
	protected int attackStrength;
	protected int posX;
	protected int posY;
	protected boolean alive;
	
	public sprite(BufferedImage img, int h, int a, int x, int y, boolean b){
		this.image = img;
		this.health = h;
		this.attackStrength = a;
		this.posX = x;
		this.posY = y;
		this.alive = b;
	}
	
	//	 getter methods
	public BufferedImage getImage(){
		return image;
	}
	
	public int getHealth(){
		return health;
	}
	
	public int getAttackStrength(){
		return attackStrength;
	}
	
	public int getX(){
		return posX;
	}
	
	public int getY(){
		return posY;
	}
	
	public boolean getLifeState(){
		return alive;
	}
	
	// setter methods
	public void setImage(BufferedImage img){
		this.image = img;
	}
	
	public void setHealth(int h){
		this.health = h;
	}
	
	public void setAttackStrength(int a){
		this.attackStrength = a;
	}
	
	public void setX(int x){
		this.posX = x;
	}
	
	public void setY(int y){
		this.posY = y;
	}
	
	public void setLifeState(boolean b){
		this.alive = b;
	}

}
